import requests
url = "https://www.python-spider.com/api/challenge6"

cookies = {
    "sessionid": "4vuhs8etq5kde30no7i02oy8zigc1rmi"
}

session = requests.Session()
answer = 0
for i in range(1,101):
    list = {
        "page": i
    }
    r = session.post( url, cookies=cookies, data=list)
    data = r.json()['data']
    print(data)

    for item in data:
        answer += int(item['value'])

print(answer)